package ifosup.commun;

import java.util.HashMap;
import java.util.Map;

public class DataIP 
{
	//design pattern singleton
	private static DataIP instance  = new DataIP();
	private Map<String, String> hAdresses = new HashMap<String, String>();
	
	private DataIP() {
		hAdresses.put("Julien", "192.168.13.70");
		hAdresses.put("Sebastien", "192.168.13.100");
		hAdresses.put("Matthias", "192.168.13.40");
		hAdresses.put("Gaelle", "192.168.13.80");
		hAdresses.put("Rodolphe", "192.168.13.90");
		hAdresses.put("Thibault", "192.168.13.50");
		hAdresses.put("Marie", "192.168.13.60");
	}

	public static DataIP getInstance() {
		return instance;
	}

	public String getIP(String name){
		return hAdresses.get(name);
	}
	
	
	
}
